home *** CD-ROM | disk | FTP | other *** search
- //--------------------------------------------------------------
- //
- // Fish.rep -- Fish of the World
- //
- // A detail report of the fish table with a background
- // image and rotated text.
- //
- // Dependencies: FISH.DBF
- // WATER2.BMP
- // Times New Roman True Type Font
- //
- // Visual dBASE Samples Group
- //
- // $Revision: 1.5 $
- //
- // Copyright (c) 1997, Borland International, Inc.
- // All rights reserved.
- //
- //---------------------------------------------------------------
-
- SET TALK OFF
- ** END HEADER -- do not remove this line
- //
- // Generated on 10/09/97
- //
- local r
- r = new FISHReport()
- r.render()
-
- class FISHReport of REPORT
- with (this)
- title = "Fish of the World"
- scaleFontSize = 8
- scaleFontBold = false
- endwith
-
-
- this.SESSIONFISH = new SESSION()
- this.SESSIONFISH.parent = this
- with (this.SESSIONFISH)
- left = 0
- top = 0
- lockRetryInterval = 0
- endwith
-
-
- this.VDBSAMPLE1 = new DATABASE()
- this.VDBSAMPLE1.parent = this
- with (this.VDBSAMPLE1)
- left = 500
- top = 0
- databaseName = "VDBSAMPLE"
- session = form.SESSIONFISH
- active = true
- endwith
-
-
- this.FISH1 = new QUERY()
- this.FISH1.parent = this
- with (this.FISH1)
- left = 1000
- top = 0
- database = form.vdbsample1
- sql = 'select * from "fish.dbf"'
- requestLive = false
- active = true
- endwith
-
-
-
-
- this.PAGETEMPLATE1 = new PAGETEMPLATE(this)
- with (this.PAGETEMPLATE1)
- height = 15840
- width = 12240
- marginTop = 720
- marginLeft = 720
- marginBottom = 720
- marginRight = 720
- gridLineWidth = 0
- background = 'filename "Water2.bmp"'
- endwith
-
-
- this.PAGETEMPLATE1.STREAMFRAME1 = new STREAMFRAME(this.PAGETEMPLATE1)
- with (this.PAGETEMPLATE1.STREAMFRAME1)
- height = 12000
- left = 800
- width = 8900
- metric = 1
- form.STREAMFRAME1 = form.pagetemplate1.streamframe1
- endwith
-
-
- this.PAGETEMPLATE1.TEXT3 = new TEXT(this.PAGETEMPLATE1)
- with (this.PAGETEMPLATE1.TEXT3)
- height = 240
- left = 360
- top = 13140
- width = 1570
- metric = 1
- colorNormal = "BtnText"
- fontSize = 11
- fontBold = true
- text = {||"Page: " + this.parent.parent.reportPage}
- form.TEXT3 = form.pagetemplate1.text3
- endwith
-
-
- this.PAGETEMPLATE1.TEXT4 = new TEXT(this.PAGETEMPLATE1)
- with (this.PAGETEMPLATE1.TEXT4)
- height = 10000
- top = 100
- width = 700
- metric = 1
- colorNormal = "darkblue"
- alignHorizontal = 1
- fontName = "Times New Roman"
- fontSize = 20
- rotate = 3
- text = "<H2>Fish of the World Fish of the World</H2>"
- form.TEXT4 = form.pagetemplate1.text4
- endwith
-
-
- this.STREAMSOURCE1 = new STREAMSOURCE(this)
-
-
-
-
-
-
- this.STREAMSOURCE1.detailBand.TEXTID1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.TEXTID1)
- height = 300
- top = 250
- width = 1000
- metric = 1
- colorNormal = "darkblue"
- alignHorizontal = 2
- fontName = "Times New Roman"
- fontSize = 11
- fontBold = true
- text = {||"Fish #: " + this.form.fish1.rowset.fields["ID"].value}
- endwith
-
-
- this.STREAMSOURCE1.detailBand.TEXTNAME1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.TEXTNAME1)
- height = 300
- left = 1101
- top = 250
- width = 2500
- metric = 1
- colorNormal = "darkblue"
- fontName = "Times New Roman"
- fontSize = 11
- fontBold = true
- text = {||this.form.fish1.rowset.fields["NAME"].value}
- endwith
-
-
- this.STREAMSOURCE1.detailBand.TEXTSPECIES1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.TEXTSPECIES1)
- height = 300
- left = 4001
- top = 250
- width = 3250
- metric = 1
- colorNormal = "darkblue"
- fontName = "Times New Roman"
- fontSize = 11
- fontBold = true
- text = {||"Species: " + this.form.fish1.rowset.fields["SPECIES"].value}
- endwith
-
-
- this.STREAMSOURCE1.detailBand.TEXTDESCRIPTION1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.TEXTDESCRIPTION1)
- height = 1
- left = 100
- top = 600
- width = 7800
- border = true
- metric = 1
- variableHeight = true
- colorNormal = "black"
- marginHorizontal = 100
- marginVertical = 100
- fontSize = 8
- fontBold = true
- text = {||this.form.fish1.rowset.fields["DESCRIPTION"].value + CHR(10) + CHR(13)}
- borderStyle = 10
- endwith
-
-
- this.STREAMSOURCE1.detailBand.TITLEIMAGEGRAPHIC1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.TITLEIMAGEGRAPHIC1)
- canRender = {||this.parent.firstOnFrame}
- height = 300
- left = 15408
- width = 1440
- metric = 1
- colorNormal = "BtnText"
- suppressIfBlank = true
- text = "<H3>Graphic</H3>"
- endwith
-
-
- with (this.printer)
- duplex = 1
- orientation = 1
- paperSource = 15
- paperSize = 1
- resolution = 4
- color = 2
- trueTypeFonts = 2
- endwith
-
-
-
-
-
-
-
- with (this.reportGroup.footerBand)
- expandable = false
- height = 2000
- endwith
-
-
- this.reportGroup.footerBand.LABELMAX = new TEXT(this.reportGroup.footerBand)
- with (this.reportGroup.footerBand.LABELMAX)
- height = 250
- left = 2000
- top = 500
- width = 2000
- metric = 1
- colorNormal = "b+"
- fontSize = 11
- fontBold = true
- text = "Biggest Fish:"
- endwith
-
-
- this.reportGroup.footerBand.MAXLENGTH = new TEXT(this.reportGroup.footerBand)
- with (this.reportGroup.footerBand.MAXLENGTH)
- height = 240
- left = 4500
- top = 500
- width = 1500
- metric = 1
- variableHeight = true
- colorNormal = "b+"
- fontSize = 11
- fontBold = true
- text = {||this.parent.parent.agMax({||this.parent.STREAMSOURCE1.rowset.fields["Length CM"].value}) + " CM"}
- endwith
-
-
- this.reportGroup.footerBand.LABELCOUNT = new TEXT(this.reportGroup.footerBand)
- with (this.reportGroup.footerBand.LABELCOUNT)
- height = 250
- left = 2000
- top = 1500
- width = 2000
- metric = 1
- colorNormal = "b+"
- fontSize = 11
- fontBold = true
- text = "Number of Fish:"
- endwith
-
-
- this.reportGroup.footerBand.FISHCOUNT = new TEXT(this.reportGroup.footerBand)
- with (this.reportGroup.footerBand.FISHCOUNT)
- height = 250
- left = 4500
- top = 1500
- width = 1500
- metric = 1
- variableHeight = true
- colorNormal = "b+"
- fontSize = 11
- fontBold = true
- text = {||this.parent.parent.agCount({||this.parent.STREAMSOURCE1.rowset.fields["Length CM"].value})+""}
- endwith
-
-
- this.reportGroup.footerBand.LABELMIN = new TEXT(this.reportGroup.footerBand)
- with (this.reportGroup.footerBand.LABELMIN)
- height = 250
- left = 2000
- top = 1000
- width = 2000
- metric = 1
- colorNormal = "b+"
- fontSize = 11
- fontBold = true
- text = "Smallest Fish:"
- endwith
-
-
- this.reportGroup.footerBand.MINLENGTH = new TEXT(this.reportGroup.footerBand)
- with (this.reportGroup.footerBand.MINLENGTH)
- height = 250
- left = 4500
- top = 1000
- width = 1500
- metric = 1
- variableHeight = true
- colorNormal = "b+"
- fontSize = 11
- fontBold = true
- text = {||this.parent.parent.agMin({||this.parent.STREAMSOURCE1.rowset.fields["Length CM"].value}) + " CM"}
- endwith
-
-
- this.firstPageTemplate = this.form.pagetemplate1
- this.form.pagetemplate1.nextPageTemplate = this.form.pagetemplate1
- this.form.pagetemplate1.streamframe1.streamSource = this.form.STREAMSOURCE1
- this.form.STREAMSOURCE1.rowset = this.form.fish1.rowset
- endclass
-